import request from '@/utils/request'
// 用户注册
export const register = ({username, password}) => {
  return request.post('/register/', {username, password})
}
// 用户登录
export const login = ({username, password}) => {
  return request.post('/token/', {username, password})
}
// 刷新token
export const refreshToken = (data) => {
  return request.post('/token/refresh/', data)
}
// 获取用户信息 - 后端未提供此接口，暂时移除
export const getUserInfo = () => {
  return request.get('/user/profile/')
}
